package cn.tedu._04mybatis.mapper;

import cn.tedu._04mybatis.pojo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户实体类的映射接口
 *
 * Mapper注解: MyBatis的注解, 可以让Spring框架为开发者自动创建该接口的实现类
 */
@Mapper
public interface UserMapper {
//    @Insert("INSERT INTO blog.user(username,password,nickname,created) " +
//            "VALUES(#{username},#{password},#{nickname},#{created})")
    int insertUser(User user);
}
